

import { RouteRecordRaw, createRouter, createWebHistory } from "vue-router";

// 静态路由表
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/index",
    component: () => import("@/view/home/home.vue"),
  },
  {
    path: "/upValue",
    component: () => import("@/view/pass/upValue.vue"),
  },
  {
    path: "/echart",
    component: () => import("@/view/echart/echart.vue"),
  },
];

const router = createRouter({
  // 前端默认展示路径(路由)
  history: createWebHistory("health"),
  routes,
});

export default router;
